<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OrdersGoods
 *
 * @ORM\Table(name="orders_goods", options={"comment":"订单商品表"})
 * @ORM\Entity()
 */
class OrdersGoods
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Orders
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Orders", inversedBy="id")
     * @ORM\JoinColumn(name="order_id", referencedColumnName="id")
     */
    private $order;

    /**
     * @var Goods
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Goods", inversedBy="id")
     * @ORM\JoinColumn(name="goods_id", referencedColumnName="id")
     */
    private $goods;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_evaluate", type="boolean", nullable=true, options={"comment":"是否评价  0否 1真", "default"="0" })
     */
    private $is_evaluate;

    /**
     * @var string
     *
     * @ORM\Column(name="market_price", type="decimal", precision=10, scale=2,  nullable=true, options={"comment"="原价"})
     */
    private $marketPrice;

    /**
     * @var string
     *
     * @ORM\Column(name="current_price", type="decimal", precision=10, scale=2,  options={"comment"="优惠价", "default"="0.00"})
     */
    private $currentPrice;

    /**
     * @var int
     *
     * @ORM\Column(name="pay_num", type="integer", options={"comment"="购买数量", "default"=1})
     */
    private $pay_num;

    /**
     * @var string
     *
     * @ORM\Column(name="material_name", type="string", length=45, nullable=true ,options={"comment"="规格名称"})
     */
    private $material_name;

    /**
     * @var string
     *
     * @ORM\Column(name="standard_name", type="string",  length=45, nullable=true, options={"comment"="材质名称"})
     */
    private $standard_name;

    /**
     * @var string
     *
     * @ORM\Column(name="postage", type="decimal", precision=10, scale=2, nullable=true, options={"comment"="邮费 0.00代表免邮费", "default"="0.00"})
     */
    private $postage;

    /**
     * @var string
     *
     * @ORM\Column(name="goods_name", type="string", length=45, nullable=true, options={"comment":"商品名称"})
     */
    private $goods_name;

    /**
     * @var string
     *
     * @ORM\Column(name="thumb", type="string", length=255, options={"comment":"缩略图"})
     */
    private $thumb;

    /**
     * @var string
     *
     * @ORM\Column(name="goods_total", type="decimal", precision=10, scale=2,  nullable=true, options={"comment"="商品总价"})
     */
    private $goods_total;

    /**
     * @var string
     *
     * @ORM\Column(name="postage_total", type="decimal", precision=10, scale=2, nullable=true, options={"comment"="邮费总价", "default"="0.00"})
     */
    private $postage_total;

    /**
     * @var string
     *
     * @ORM\Column(name="goods_no", type="string", length=45, nullable=true,  options={"comment":"商品编号"})
     */
    private $goodsNo;

    /**
     * @var string
     *
     * @ORM\Column(name="total", type="decimal", precision=10, scale=2, nullable=true, options={"comment"="总价(总邮费+总商品总价)", "default"="0.00"})
     */
    private $total;

    /**
     * @var string
     *
     * @ORM\Column(name="purchase_price", type="decimal", precision=10, scale=2, options={"comment"="进货价", "default"="0.00"})
     */
    private $purchase_price;

    /**
     * @var string
     *
     * @ORM\Column(name="purchase_total_price", type="decimal", precision=10, scale=2, options={"comment"="进货总价", "default"="0.00"})
     */
    private $purchase_total_price;


    /**
     * @var string
     *
     * @ORM\Column(name="total_profit", type="decimal", precision=10, scale=2, nullable=true, options={"comment"="总利润(总价-进货总价)", "default"="0.00"})
     */
    private $total_profit;

    /**
     * @var string
     *
     * @ORM\Column(name="distribution", type="decimal", precision=10, scale=2, options={"comment"="分销奖励", "default"="0.00"})
     */
    private $distribution;

    /**
     * @var string
     *
     * @ORM\Column(name="total_distribution", type="decimal", precision=10, scale=2, options={"comment"="分销奖励总价", "default"="0.00"})
     */
    private $total_distribution;

    /**
     * @var string
     *
     * @ORM\Column(name="goods_classify_name", type="string", length=45, options={"comment":"分类名称"})
     */
    private $goods_classify_name;
    
    


}
